﻿using HamcoWcs.Tools.Tibco.MesMsgService;
using SqlSugar;

namespace HamcoWcs.Tools.Tibco
{
    public class Context
    {
        public IMesMsgParserFactory MesMsgParserFactory { get; set; }
        public Context()
        {
            MesMsgParserFactory = new MesMsgParserFactory();
        }

        public Context(ISqlSugarClient client) : this()
        {
            Client = client;
        }

        public Context(ISqlSugarClient client, TibcoTool tibcoTool) : this(client)
        {
            TibcoTool = tibcoTool;
        }

        public string SendSubject => TibcoConfigurationManager.Configuration.SendSubject;
        public ISqlSugarClient Client { get; set; }

        public TibcoTool TibcoTool { get; set; }

    }
}
